package com.wn.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author yellow Docter
 * @date 2022 -07-08
 * @desc
 */
// 纯注解  事务配置
@EnableTransactionManagement  // 开启 事务配置注解方式 等价于 <tx:annotation-driven></tx:annotation-driven>
@Configuration
@PropertySource("classpath:db.properties")
@Import({JdbcConfig.class,MybatisConfig.class})
public class SpringConfig {

}
